package com.lzh.lzhframework.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzh.lzhframework.domain.dto.feedback.QueryMyFeedbackDto;
import com.lzh.lzhframework.domain.entity.FeedbackEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * (Feedback)表数据库访问层
 *
 * @author luzhiheng
 * @since 2023-11-27 11:47:41
 */
@Mapper
public interface FeedbackMapper extends BaseMapper<FeedbackEntity> {

    /**
     * 根据用户名查询我的反馈列表
     *
     * @param dto
     * @return
     */
    IPage<FeedbackEntity> queryByUserName(@Param("iPage") Page<FeedbackEntity> page, @Param("searchObject") QueryMyFeedbackDto dto);

}